package com.hb.medical_research_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 * @TableName search
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="search")
public class Search implements Serializable {
    /**
     * 搜索id
     */
    @TableId(type = IdType.AUTO)
    private Long searchId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 搜索关键词
     */
    private String keyword;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 搜索时间
     */
    private LocalDateTime time;

    /**
     * 页码
     */
    private String page;

    /**
     * 点赞,是为1,否为0
     */
    private Integer likes;

    /**
     * 踩数,是为1,否为0
     */
    private Integer unlikes;

    /**
     * 点击,是为1,否为0
     */
    private Integer click;

    /**
     * 对应结果id
     */
    private Long result;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}